﻿//====================================================================
// Create by Daniel
// file： YCUser.cs
// project ：YunCMS
// Build time：2012-09-06
// modify:
// description:
// ===================================================================
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using YunCMS.Model;

namespace YunCMS.IDAL
{
    /// <summary>
    /// DAL YCUser Interface
    /// </summary>
    public interface IYCUserDAL
    {
		/// <summary>
        /// Insert a YCUser
        /// </summary>
        int Add(Model.YCUser model);

        /// <summary>
        /// update a YCUser
        /// </summary>
        int Update(Model.YCUser model);

        /// <summary>
        /// delete a YCUser
        /// </summary>
        int Delete(int id);

        /// <summary>
        /// get the max YCUser
        ///</summary>
        //int GetMaxId();

        /// <summary>
        /// IsExists?
        /// </summary>
        bool IsExist(string userAccount, string password);

        bool IsExist(int id);

        /// <summary>
        /// Get one YCUser
        /// </summary>
        Model.YCUser GetYCUser(int id);
        Model.YCUser GetYCUser(string userAccount);

        /// <summary>
        /// Get YCUser List
        /// </summary>
        IList<Model.YCUser> GetList(string account);

        int UpdateOneField(int id, string fieldName, object value);
      
    }
}



